#ifndef __SENSOR_FBM320_H_
#define __SENSOR_FBM320_H_

#define FBM320_I2C_BUS_NAME           "i2c1"                    // I2C设备名称

#define FBM320_ADDR                   0x6C
#define FBM320_ID_ADDR                0x6B
#define FBM320_ID                     0x42
#define FBM320_CONFIG                 0XF4
#define FBM320_RESET                  0XE0
#define FBM320_DATAM                  0xF6
#define FBM320_DATAC                  0xF7
#define FBM320_DATAL                  0xF8
#define OSR1024                       0x34
#define OSR2048                       0x74
#define OSR4096                       0xB4
#define OSR8192                       0xF4
#define TEMPERATURE                   0x2E
#define RESET_DATA                    0xB6

int fbm320_init(void);
unsigned char  fbm320_read_data(float *temperature, float *pressure);

#endif // __SENSOR_FBM320_H_
